package question_answer

type ListRequest struct {
	Page               int       `form:"page" binding:"required" validate:"required"`
	Limit              int       `form:"limit" binding:"required" validate:"required"`
	Question           *string   `form:"question"`
	Answer             *string   `form:"answer"`
	TypeClassifyId     *int      `form:"type_classify_id"`
	BusinessClassifyId *int      `form:"business_classify_id"`
	GenerationCount    *string   `form:"generation_count"`
	CreatedAt          *[]string `form:"created_at"`
}

type ListResponse struct {
	List  []QuestionAnswer `json:"list"`
	Total int64            `json:"total"`
	Page  int              `json:"page"`
	Limit int              `json:"limit"`
}

type QuestionAnswer struct {
	Id                    int    `json:"id"`
	Question              string `json:"question"`
	Answer                string `json:"answer"`
	TypeClassifyId        int    `json:"type_classify_id"`
	TypeClassifyTitle     string `json:"type_classify_title"`
	BusinessClassifyId    int    `json:"business_classify_id"`
	BusinessClassifyTitle string `json:"business_classify_title"`
	CreatedAt             string `json:"created_at"`
	GenerationCount       int    `json:"generation_count"`
}
